package net.itheima.mm.service;

import net.itheima.mm.entity.QueryPageBean;
import net.itheima.mm.pojo.Catalog;

import java.util.List;

/**
 * @author zhangyan
 * @date 2021/2/25 23:34
 */
public interface CatalogService {

    //查询总条数
    long getTotal();
    //分页查询
    List<Catalog> findListByPage(QueryPageBean queryPageBean);
    //新增
    void add(Catalog catalog);
    //编辑
    void edit(Catalog catalog);
    //删除
    void delete(Integer id);
}
